package com.huangjue.backend.service;

import com.huangjue.backend.entity.VideoFinish;

import java.util.List;

public interface VideoFinishService {
    
    /**
     * 记录视频观看
     */
    boolean markVideoWatched(Integer userId, Integer demoId, Integer videoId);
    
    /**
     * 检查视频是否已观看
     */
    boolean isVideoWatched(Integer userId, Integer demoId, Integer videoId);
    
    /**
     * 获取用户在某个demo下的所有观看记录
     */
    List<VideoFinish> getWatchedVideos(Integer userId, Integer demoId);
    
    /**
     * 删除观看记录
     */
    boolean deleteVideoWatched(Integer userId, Integer demoId, Integer videoId);
} 